package com.scedu.spring5.bean;
//员工类
public class Emp {
    private String ename; //员工姓名
    private String gender;// 员工性别
    private Dept dept;// 员工部门，员工属于某一个部门，用对象的形式进行表示
    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
    public  void test(){
        System.out.println(ename+" "+ gender+ " "+dept);
    }
}
